<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=Edge">
    <meta name="renderer" content="webkit">
    <meta http-equiv="Cache-Control" content="no-transform">
    <meta http-equiv="Cache-Control" content="no-siteapp">
    <title>我的收藏</title>
    <meta name="Keywords" content="我的收藏">
    <meta name="Description" content="我的收藏">
    <!--css start-->
    <link href="collection/global_site_base.css" rel="stylesheet" type="text/css">
    <!--css end-->
    <!--js start-->
    <script type="text/javascript" async="" src="collection/joya.js"></script>
    <!--js end-->
    <link href="collection/leftmenu.css" rel="stylesheet" type="text/css">
    <script type="text/javascript" charset="UTF-8" src="collection/login_frame_client.js"></script>
</head>
<body id="comParamId" data-param="{&quot;globalPageCode&quot;:&quot;-1&quot;,&quot;currPageId&quot;:&quot;-1&quot;}"
      class="">
<div class="hd_header_wrap">
    <!-- top_bar base -->
    <div class="hd_top_bar">
        <div class="wrap clearfix">
            <a href="" class="hd_topbar_home">
                <i class="hd_iconfont"></i>
                <span>格调同城首页</span>
            </a>
            <div class="hd_topbar_right">
                <ul>
                    <li id="global_unlogin">
                        <div class="hd_unlogin" clstag="pageclick|keycount|shouye_20181018|toolbar_Login">
                            <span class="hd_hi">你好:</span>
                            <a href="login.html" class="hd_login_link" id="dl">登录&nbsp;</a>
                            <a href="register.html" class="hd_regist_link" id="zc">&nbsp;注册</a>
                        </div>
                    </li>
                    <li id="global_login" class="" style="display:none" data-type="2017">
                        <div class="hd_login">
                            <div class="hd_login_name_con">
                                <span class="hd_hi">你好,</span>
                                <a href="" id="name" class="hd_login_name"></a>

                            </div>
                            <a href="" class="hd_vip hd_vip__gradeStyle__" ><img id="imgValidateCode" src="" style="width: 100px;height: 35px;margin-top: -10px"></a>&nbsp;&nbsp;
                            <a id="tc" onclick="tc()">退出</a>
                        </div>
                    </li>
                    <li clstag="pageclick|keycount|global_201709226|6">
                        <div class="hd_menu">
                            <a href="" target="_blank" rel="nofollow"><i class="hd_iconfont"></i>我的订单</a>
                        </div>
                    </li>
                    <li class="hd_has_child" clstag="pageclick|keycount|global_201709226|7">
                        <div class="hd_menu">
                            <a href="" target="_blank">客户服务</a>
                            <i class="hd_iconfont"></i>
                        </div>
                        <div class="hd_menu_list">
                            <a href="" target="_blank" title="在线退换货">在线退换货</a>
                        </div>
                    </li>
                </ul>
            </div>
        </div>
    </div>
    <!-- top_main base -->
    <div class="wrap hd_header hd_cm_global">
        <div class="clearfix">
            <div class="hd_logo_area" clstag="pageclick|keycount|2017091213|22">
                <a href="" class="hd_logo"><img src="image/ChEi2lj4TqGAOjXwAAAbSq83IXA88700.png" alt="基础头部logo"></a>
            </div>
            <div class="hd_header_right">
                <div class="clearfix">
                    <div class="hd_head_search">
                        <div class="hd_search_form" id="hdSearchForm">
                            <div class="hd_fixed_wrap">
                                <a href="" class="hd_fixed_logo"><img src="image/ChEi11jziUSAOkn4AABJ2dwtrSw01400.jpg"
                                                                      alt="" width="205" height="70"></a>
                                <div class="hd_search_wrap clearfix">
                                    <label for="keyword" style="display:none;"></label>
                                    <input class="hd_search_ipt" name="keyword" id="keyword" type="text"
                                           placeholder="格兰仕微波炉" original="格兰仕微波炉" url="" style="color:#333333;"
                                           maxlength="100" autocomplete="off" x-webkit-speech=""
                                           onwebkitspeechchange="emptySearchBar();"
                                           x-webkit-grammar="builtin:translate">
                                    <button type="button" class="hd_search_btn" onclick="javascript:searchMeForClick();"
                                            clstag="pageclick|keycount|global_201709226|8"><i class="hd_iconfont"></i>
                                    </button>
                                </div>
                                <!--搜索提示 begin-->
                                <div id="searchSuggest" class="hd_search_tips_result" style="display:none"
                                     onmouseover="$('#searchSuggest').show()"
                                     clstag="pageclick|keycount|global_201709226|9"></div>
                                <!--搜索提示 end-->
                            </div>
                        </div>

                    </div>
                    <div class="hd_mini_cart" id="miniCart" data-version="1" clstag="pageclick|keycount|2017091213|19">
                        <u class="hd_c_num none" id="in_cart_num" style="display: none;"></u>
                        <a class="hd_prism_cart" href="shopcar.html" data-ref="YHD_TOP_MINICART">
                            <em class="hd_iconfont"></em>
                            <span>购物车</span>
                        </a>
                        <div class="hd_cart_show none" id="showMiniCartDetail">
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
    <!-- top_nav base -->
    <div class="hd_cm_wrap">
        <div class="wrap">
            <div class="hd_cm_nav clearfix" id="headerNav">
                <div class="hd_cm_allsort_wrap" id="allSortbox">
                    <a href="javascript:;" class="hd_cm_tit">所有商品分类<em class="hd_iconfont"></em></a>
                    <div class="mod_hd_allsort">
                    </div>
                </div>
                <div class="hd_cm_nav_wrap">
                    <ul class="clearfix" id="global_menu">
                        <li>
                            <a href="" title="超级单品" target="_blank">超级单品</a>
                        </li>
                        <li>
                            <a href="" title="超级品牌" target="_blank">超级品牌</a>
                        </li>
                        <li>
                            <a href="" title="超级品类" target="_blank">会员专区</a>
                        </li>
                    </ul>
                </div>
            </div>
        </div>
    </div>
</div>
<div id="mark_mask"
     style="display:none;position:fixed;top:40px;left:0;z-index:99999999;height:1000px;width:100%;background:rgba(0,0,0,0.4);"></div>
<!--content start-->
<!-- content -->
<div class="mpc_cont">
    <div class="wrap clearfix">
        <!-- sideNav -->
        <div class="mpc_cont_sideNav">
            <dl>
                <dt>
                    <i class="my_iconfont sidenav_icon"></i>
                    <span>我的交易</span>
                </dt>
                <dd>
                    <a onclick="addTrackPositionToCookie('2','Myyhd_New_Left_Menu_Transaction')" href=""
                       target="_blank">格调同城订单</a>
                </dd>
            </dl>
            <dl>
                <dt>
                    <i class="my_iconfont sidenav_icon"></i>
                    <span>会员资料</span>
                </dt>

                <dd>
                    <a onclick="addTrackPositionToCookie('2','Myyhd_New_Left_Menu_Member_Ziliao')" href=""
                       target="_blank">个人资料</a>
                </dd>
            </dl>
            <dl>
                <dt>
                    <i class="my_iconfont sidenav_icon"></i>
                    <span>我的评论</span>
                </dt>
                <dd>
                    <a onclick="addTrackPositionToCookie('2','Myyhd_New_Left_Menu_Transaction_Common')" href=""
                       target="_blank">评论商品</a>
                </dd>
            </dl>
            <dl>
                <dt>
                    <i class="iconfont sidenav_icon smallicon"></i>
                    <span>我的收藏</span>
                </dt>
                <dd>
                    <a onclick="addTrackPositionToCookie('2','Myyhd_New_Left_Menu_Follow_Product')" href=""
                       target="_blank">收藏商品</a>
                </dd>
            </dl>
            <dl>
                <dd>
                    <a onclick="addTrackPositionToCookie('2','Myyhd_New_Left_Menu_OnLineHelp_Return')" href=""
                       target="_blank">在线退换货</a>
                </dd>
            </dl>
        </div>
        <script type="text/javascript" src="collection/jquery.js"></script>
        <script type="text/javascript" src="collection/leftmenu.js"></script>
        <!-- <script type="text/javascript" src="//img.yihaodianimg.com/myyhd/member/index/js/leftmenu.js"></script> -->
        <!-- main -->
        <div class="mpc_cont_main">
            <!-- attention -->
            <div class="attention">
                <div class="attention-head clearfix">
                    <div class="attention-head-item active">
                        <div><a href="">收藏的商品</a></div>
                        <div class="line"></div>
                    </div>
                </div>
                <div class="attention-con attention-good">
                    <div class="good-line clearfix">
                        <ul id="collGoodList">
                            <!-- 商品顺位 -->

                        </ul>
                    </div>
                </div>
                <!--翻页 -e-->
                <!-- <div class="mod_turn_page clearfix">
                <div class="turn_page clearfix">
                <span class="page_start"><i class="iconSearch">&#xe61f;</i>上一页</span>
                <span class="page_cur">1</span>
                <span href="#" class="page_end">下一页<i class="iconSearch">&#xe60b;</i></span>
                </div>
                </div> -->
                <div class="mod_turn_page clearfix" id="pageBar">
                    <div class="turn_page clearfix">
                        <input type="hidden" id="currentPage" value="1">
                        <input type="hidden" id="pageSize" value="8">
                        <input type="hidden" id="totalCount" value="1">
                        <div class="turnPageBottom"><span class="page_start"><i class="iconSearch"></i>上一页</span><span
                                class="page_cur">1</span><span class="page_end">下一页<i class="iconSearch"></i></span>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
<!-- 返回顶部 -->
<div class="prism_to_top">
    <a href="#" class="my_iconfont back_top"></a>
</div>
<link href="collection/base.css" rel="stylesheet" type="text/css">
<link href="collection/my_iconfont.css" rel="stylesheet" type="text/css">
<link href="collection/iconfont_unicode.css" rel="stylesheet" type="text/css">
<link href="collection/myHeader.css" rel="stylesheet" type="text/css">
<link href="collection/pageNo.css" rel="stylesheet" type="text/css">
<link href="collection/myAttention.css" rel="stylesheet" type="text/css">
<link href="collection/attentionGood.css" rel="stylesheet" type="text/css">
<script type="text/javascript" src="collection/dialog.js"></script>
<script type="text/javascript" src="collection/jquery-1.js"></script>
<script type="text/javascript" src="collection/attentionGood.js"></script>
<script src="collection/require.js"></script>
<script src="collection/carToast.js"></script>
<!--content end-->
<div class="ft_wrap">
    <div id="globalBottomBrowseRelated" data-recordtracker="1"></div>
    <div class="wrap ft_footer_service clearfix" id="footerIcon" data-tpa="YHD_GLOBAl_FOOTERICON">
        <a target="_blank">
            <img alt="" src="image/CgQI0lWskgmADBnsAAAPZvcSh3E68900.jpg">
            <b>正品保障</b>
            <span>正品行货 放心选购</span>
        </a>
        <a target="_blank">
            <img alt="" src="image/ChEbulWsk4iADa_aAAAM544hHN818600.jpg">
            <b>满86包邮</b>
            <span>满86元 免运费</span>
        </a>
        <a target="_blank">
            <img alt="" src="image/CgQIz1WslI-Adao3AAAN5b_ut2I80100.jpg">
            <b>售后无忧</b>
            <span>7天无理由退货</span>
        </a>
        <a target="_blank">
            <img alt="" src="image/ChEi11WsyiyALBbiAAAN9lEEK5M33200.jpg">
            <b>准时送达</b>
            <span>收货时间由你做主</span>
        </a>
    </div>
    <div class="wrap ft_service_link clearfix">
        <div id="bottomHelpLinkId" class="ft_help_list clearfix" data-tpa="YHD_GLOBAl_FOOTER_HELP">
            <dl>
                <dt>新手入门</dt>
                <dd><a href="" target="_blank">购物流程</a></dd>
                <dd><a href="" target="_blank">会员制度</a></dd>
                <dd><a href="" target="_blank">订单查询</a></dd>
                <dd><a href="" target="_blank">服务协议及隐私说明</a></dd>
                <dd><a href="" target="_blank">网站地图</a></dd>
            </dl>
            <dl>
                <dt>支付方式</dt>
                <dd><a href="" target="_blank">货到付款</a></dd>
                <dd><a href="" target="_blank">网上支付</a></dd>
                <dd><a href="" target="_blank">礼品卡支付</a></dd>
                <dd><a href="" target="_blank">其它支付</a></dd>
            </dl>
            <dl>
                <dt>配送服务</dt>
                <dd><a href="" target="_blank">配送进度查询</a></dd>
                <dd><a href="" target="_blank">商品验货与签收</a></dd>
            </dl>
            <dl>
                <dt>售后保障</dt>
                <dd><a href="" target="_blank">退换货政策</a></dd>
                <dd><a href="" target="_blank">发票制度</a></dd>
                <dd><a href="" target="_blank">帮助中心</a></dd>
            </dl>
        </div>
    </div>
    <div id="footer">
        <p class="ft_footer_link">
        </p>
        <p class="ft_footer_link">
            <a href="" target="_blank">沪ICP备16050468号</a>
            |
            <a href="" target="_blank">经营证照</a>
            |
            <a href="" target="_blank">互联网药品信息服务资格证(沪)-经营性-2017-0006</a>
            |
            <a target="_blank">违法和不良信息举报电话：0527-88100253</a>
            |
            <a href="" target="_blank">沪B2-20170039</a>
            |
            <a href="" target="_blank">沪公网安备 31010502002939号</a>
            |
            <a href="" target="_blank">友情链接</a>
            |
            <a href="" target="_blank">出版物经营许可证</a>
            |
            <a href="" target="_blank">增值电信业务经营许可证</a>
        </p>
        <span hidden id="stoId"></span>
        <p>Copyright© 格调同城 2007-2019，All Rights Reserved</p>
        <small id="footerbanner2LazyLoad" class="ft_pic_link">
            <a href="" target="_blank">
                <img alt="" src="image/CgQCr1PQy1CAF7vaAABDexsiEYM24800.jpg">
            </a>
            <a href="" target="_blank">
                <img alt="" src="image/ChEi1VcfPl2AC1T8AAANFrEfJlw97300.jpg">
            </a>
            <a href="" target="_blank">
                <img alt="" src="image/ChEi2lh171KAJrGlAAALl_uZt0E75600.jpg">
            </a>
            <a href="" target="_blank">
                <img alt="" src="image/ChEi1FYXHcOAVk_WAAAL2r2-yfo10200.jpg">
            </a>
            <a href="" target="_blank">
                <img alt="" src="image/CgQCrlPYTqCASlHXAAAd82JE0eA31000.png">
            </a>
            <a href="" target="_blank">
                <img alt="" src="image/5a706bb1Ne3eec0dd.png">
            </a>
        </small>
    </div>
</div>
<!--js start-->
<!--无页面级头部js时, 全局头部js下移-->
<script type="text/javascript" src="js/jquery-1.8.3.min.js"></script>
<script type="text/javascript" src="js/axios.js"></script>
<script type="text/javascript" src="collection/global_base_top.js" charset="utf-8"></script>
<script type="text/javascript" src="collection/synccookiepc.js" charset="utf-8"></script>
<script type="text/javascript">

    var stId="";

    function redisStore(){
        $.ajaxSettings.async=false;
        $.getJSON(" http://ivr3ur.natappfree.cc/getRedisStoreId",function(data){
            $("#stoId").text(data);
        })
        $.ajaxSettings.async=true;
        stId=$("#stoId").text();

    }

    var resUserId;
    $(document).ready(function () {
        getSession();
        searchCollShop();
        redisStore();
    })

    function getSession() {
        $.ajaxSettings.async=false;
        $.getJSON(" http://qmgeqh.natappfree.cc/selUser",function(data){
            if(data.Nickname==null||data.Nickname==""||data.Nickname=="null"){
                document.getElementById("global_login").style.display = "none";
                document.getElementById("global_unlogin").style.display = "inline";
            }
            $("#name").text(data.Nickname)
            if(data.Nickname!=null && data.Nickname!=" "&&data.Nickname!="null"){
                alert("biaoshi"+data.Nickname)
                resUserId=data.userid;
                alert(resUserId);
                document.getElementById("global_login").style.display = "inline";
                document.getElementById("global_unlogin").style.display = "none";
                if(data.Member==0){
                    $('#imgValidateCode').attr("src", "img/vip0.png");
                }else if(data.Member==1){
                    $('#imgValidateCode').attr("src", "img/vip1.png");
                }else if(data.Member==2){
                    $('#imgValidateCode').attr("src", "img/vip2.png");
                }else if(data.Member==3){
                    $('#imgValidateCode').attr("src", "img/vip3.png");
                }
            }
        })


    }

    function delShop(id){
        $.getJSON(" http://ivr3ur.natappfree.cc/deleteCollectionById", {"id": id}, function (data1) {
            if (data1 == 1) {
                $("#collGoodList").empty();
                searchCollShop();
            }

        })
    }

    function toShopDet(_cName){
        alert(_cName)
        window.location.href="shopDetail.html?valueShop="+_cName;
    }

    function searchCollShop(){
        $.getJSON(" http://ivr3ur.natappfree.cc/selectCollByuserId", {"userid": 1}, function (data) {
            alert("查询收藏商品");
            var li="";
            for (var i = 0; i < data.length; i++) {
                li += " <li>\n" +
                    "                                <div class=\"good-item\">\n" +
                    "                                    <div class=\"good-item-con\">\n" +
                    "                                        <div class=\"good-img\">\n" +
                    "                                            <!--已售罄-->\n" +
                    "                                            <a href=\"\" target=\"_blank\"\n" +
                    "                                               clstag=\"pageclick|keycount|getFollow_201802064|1\">\n" +
                    "                                               <a href='javascript:void(0);' onclick='toShopDet(\""+data[i].commodityid+"\")'> <img src='"+data[i].path+"' alt=\"图片\"></a>\n" +
                    "                                            </a>\n" +
                    "                                        </div>\n" +
                    "                                        <div class=\"good-title\"\n" +
                    "                                             title=''>\n" +
                    "                                            <a  " +
                    "                                               style='padding-left: 20px;'>"+data[i].name+"" +
                    "                                            </a>\n" +
                    "                                        </div>\n" +
                    "                                        <div class=\"good-price\">¥<span >"+data[i].price+"</span>\n" +
                    "                                        </div>\n" +
                    "                                        <!-- 加入购物车 -->\n" +
                    "                                        <div class=\"good-btn \">\n" +
                    "                                            <div class=\"good-cart\" clstag=\"pageclick|keycount|getFollow_201802064|2\"\n" +
                    "                                                >\n" +
                    "                                                <i class=\"icon iconfont\"></i><span onclick='addCar("+data[i].commodityid+")'>加入购物车</span>\n" +
                    "                                            </div>\n" +
                    "                                            <div onclick='delShop("+data[i].id+")'  class=\"cartIcon\"><i class=\"icon iconfont\"></i></div><input id='cId" + i + "' hidden type='text' value='" + data[i].id + "'/> \n" +
                    "                                        </div><input hidden type='text' id='commodity"+i+"' value='"+data[i].commodityid+"'/> \n" +
                    "                                    </div>\n" +
                    "                                </div>\n" +
                    "                            </li>";

            }
            $("#collGoodList").append(li);
        })

    }




    //加入购物车
    function addCar(id){
        alert("加入购物车")
        var date=new Date();
        var year = date.getFullYear(); //获取年
        var month = date.getMonth()+1;//获取月
        var day = date.getDate(); //获取当日
        var time = year+"-"+month+"-"+day; //组合时间
        alert("当前日期："+time);
        var _data = {
            "storeid": stId,
            "userid": resUserId,
            "commodityid": id,
            "number": 1,
            "state":0,
            "createtime": time
        }
        axios.post(" http://ivr3ur.natappfree.cc/insertShopCar", _data)
            .then(function (response) {
                if(response.data>0){
                    alert("已加入购物车")
                }
            })
    }


</script>
<iframe id="globalLocalStorageAdaptorForGet" style="display:none" src="collection/getLocalStorage.htm"
        loaded="1"></iframe>
</body>
</html>